#include "Application.h"
#include "Localization.h"
#include "TextStreamStandardIO.h"
#include "WorkModeMenuText.h"
#include "WorkModeReceiver.h"

void RunApplication ()
{
	TextStreamInterfacePtr textStream ( TextStreamStandardIO::Spawn () );
	WorkModeReceiverInterfacePtr workModeReceiver ( WorkModeReceiver::Spawn () );
	WorkModeMenuInterfacePtr workModeMenu ( WorkModeMenuText::Spawn 
		( Localization ()->WorkModeMenuTextLocalization ()
		, textStream
		) );
	
	workModeMenu->Run ( workModeReceiver );
	
	workModeMenu.Delete ();
	workModeReceiver.Delete ();
	textStream.Delete ();
}
